package com.css.fxfzypg.modules.model.service;

import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.baseData.entity.CenterResult;
import com.css.fxfzypg.modules.baseData.entity.PbeEntity;
import com.css.fxfzypg.modules.baseData.entity.TaskPbe;
import com.css.fxfzypg.modules.model.entity.Casualty;
import com.css.fxfzypg.modules.model.entity.DataPbeInjuries;
import com.css.fxfzypg.modules.model.entity.DataPbeInjuriesVo;
import com.css.fxfzypg.modules.model.entity.DataPbeIntStrArea;
import com.css.fxfzypg.modules.model.to.CasualtyTO;
import com.css.fxfzypg.modules.model.vo.CasualtyVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface CasualtyService {

    Map<String, Object> getPage(CasualtyTO casualtyVO, int curPage, int pageSize);

    Map<String, Object> getPageForXczh(CasualtyTO casualtyTO, int curPage, int pageSize);

    Casualty getModelById(String id);

    Casualty getDefaultModel();

    List<Casualty> getByDivision(String province, String city, int isNa);

    void save(Casualty casualty);

    void update(Casualty casualty);

    void delete(String id);

    CasualtyVO getModelByIdForCopy(String id);

    Casualty getDefaultModel(String taskId);

    RestResponse calculate(String taskId,String range) throws Exception;

    RestResponse savePbeInjuries(String modeId, String taskId) throws Exception;

    RestResponse countIntensityAndStructureOfArea(String taskId,String tab,String range);

    List<DataPbeInjuries> getPbeByTaskIdAndIntensity(String taskId, String dzIntensity);

    List<DataPbeInjuries> getTaskPbe(String taskId);

    List<DataPbeInjuriesVo> getTaskPbeVo(String taskId);

    Integer getTaskPbeCount(String taskId);

    DataPbeIntStrArea findByTaskIdLimit(String taskId);

    void deleteDataPbeIntStrAreaByTaskId(String taskId);

    //ss
    Casualty getModel1ById(String model2Id);

    DataPbeInjuries findByTaskIdLimit2(String taskId);


    void exportIntensityAndStructureOfArea(String taskId, HttpServletResponse resp) throws Exception;

    void exportPbeInjuries(String taskId, HttpServletResponse resp) throws Exception;
}
